package com.swpu.select.service.impl;

import com.swpu.select.dao.UserMapper;
import com.swpu.select.pojo.Users;
import com.swpu.select.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceimpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public boolean userLogin(String username, String password) {
        Users users = userMapper.userLogin(username, password);
        if(users!=null){
            return true;
        }else {
            return false;
        }
    }
}